package com.ytjj.qmyx.users.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient("qmyx-order")
public interface OrderClient {
    @GetMapping("/wxpay/wxAppOrderQuery")
    Map<String, String> wxAppOrderQuery(@RequestParam("resOrderNo") String resOrderNo,
                                        @RequestParam("tradeType") String tradeType);

    @GetMapping("/wxpay/refundOrders")
    Map<String, String> refundOrders(@RequestParam("tradeType") String tradeType,
                                     @RequestParam("tradeNo") String tradeNo,
                                     @RequestParam("refundNo") String refundNo,
                                     @RequestParam("totalFee") Integer totalFee,
                                     @RequestParam("refundFee") Integer refundFee,
                                     @RequestParam("desc") String desc);
}
